<template>
  <div class="content">
    <div class="con-left"></div>
    <div class="con-right">
      <div class="title">{{blank_title}}</div>
      <div class="sub-title">上传本地{{blank_subTitle}}，让谈单更简单</div>
      <div class="btn">
        <a-button type="primary" @click="click">立即添加</a-button>
      </div>
      <div class="remark">如需帮助，请拨打客服电话：4000-258-717</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '居然没有人!'
    },
    subTitle: {
      type: String,
      default: '司仪'
    }
  },
  data() {
    return {
      blank_title: this.title || '',
      blank_subTitle: this.subTitle || ''
    }
  },
  watch: {
    title() {
      this.blank_title = this.title
    },
    subTitle() {
      this.blank_subTitle = this.subTitle
    }
  },
  methods: {
    click() {
      this.$emit('link')
    }
  }
}
</script>

<style lang='less' scoped>
.content {
  min-height: 900px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .con-left {
    margin-right: 80px;
    height: 682px;
    width: 846px;
    background: url('../../assets/blank.png') no-repeat center center / 100%
      100%;
  }
  .con-right {
    margin-left: 80px;
    .title {
      font-weight: 700;
      font-size: 38px;
      line-height: 28px;
    }
    .sub-title {
      font-size: 20px;
      line-height: 20px;
      margin: 40px 0 20px;
      color: rgba(0, 0, 0, 0.44);
    }
    .remark {
      margin-top: 20px;
      font-size: 12px;
      color: rgba(0, 0, 0, 0.44);
    }
  }
}
</style>
